package com.woniuxy.orderserver.controller;

import com.woniuxy.orderserver.service.FinanceOrderService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class CarController {
    @Autowired
    private FinanceOrderService orderService;

    /**
     * 添加购物车
     */
    @PostMapping("/addCart")
    public String addCart(Integer skuId){
        return orderService.addCart(skuId);
    }
}
